package com.hljx.mapper.sys;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hljx.dto.DateDTO;
import com.hljx.dto.WorkloadTargetAdministrationDTO;
import com.hljx.entity.EtlItemDetail;
import com.hljx.entity.EtlItemSummary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hljx.entity.WorkloadSummary;
import com.hljx.vo.WorkloadTargetAdministrationDeptProjectVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2023-11-09
 */
@Mapper
public interface EtlItemSummaryMapper extends BaseMapper<EtlItemSummary> {

    /**
     * 插入数据
     * @param list
     * @param period
     * @return
     */
    int   insertBatch (@Param("list") List<EtlItemSummary> list, @Param("period") String period);
    void    deleteAll(@Param("period") String period);



    IPage<EtlItemSummary> listByPage(@Param("page") Page<EtlItemSummary> page, @Param("dto") DateDTO dto);

    List<EtlItemSummary> listByPeriod( @Param("dto")DateDTO dto);


    List<WorkloadSummary>listEtlItemSummaryByPeriod( @Param("dto")DateDTO dto);
}
